WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
wolf::TreeManagerBase Class Referenceabstract

Base class of tree managers: they manage the wolf tree (e.g. removing or fixing frames) at each new keyframe. More...

#include <core/tree_manager/tree_manager_base.h>

Inheritance diagram for wolf::TreeManagerBase:
[legend]

Public Member Functions

virtual ~TreeManagerBase ()
 Destructor. More...
 
virtual void keyFrameCallback (FrameBasePtr _key_frame)=0
 Manages the wolf tree when a new keyframe is created. More...
 
bool hasChildren () const override
 Returns whether the node has children in the Wolf tree. More...
 
- Public Member Functions inherited from wolf::NodeBase
 NodeBase (const std::string &_category, const std::string &_type="Undefined", const std::string &_name="")
 Constructor. More...
 
virtual ~NodeBase ()=default
 Destructor. More...
 
unsigned int nodeId () const
 Returns the node id, unique over the whole Wolf tree. More...
 
std::string getCategory () const
 Returns the category of the node. More...
 
std::string getType () const
 Returns the type (subcategory) of the node. More...
 
std::string getName () const
 Returns the name of the node. More...
 
bool isRemoving () const
 Returns whether the node is being removed. More...
 
virtual bool hasChildren () const =0
 Returns whether the node has children in the Wolf tree. More...
 
void setType (const std::string &_type)
 Sets the type (subcategory) of the node. More...
 
void setName (const std::string &_name)
 Sets the name of the node. More...
 
ProblemConstPtr getProblem () const
 Returns the problem the node belongs to. More...
 
ProblemPtr getProblem ()
 Returns the problem the node belongs to. More...
 

Protected Member Functions

 TreeManagerBase (const std::string &_type, const YAML::Node &_params)
 Constructor from the derived class name and the YAML parameters. More...
 
- Protected Member Functions inherited from wolf::NodeBase
virtual void setProblem (ProblemPtr _prob_ptr)
 Sets the problem the node belongs to. More...
 

Additional Inherited Members

- Protected Attributes inherited from wolf::NodeBase
ProblemWPtr problem_ptr_
 Problem the node belongs to. More...
 
unsigned int node_id_
 Node id. It is unique over the whole Wolf Tree. More...
 
std::string node_category_
 Text label identifying the category of node ("SENSOR", "FEATURE", etc) More...
 
std::string node_type_
 Type or subcategory of node (derived class name: "SensorOdom2d", etc) More...
 
std::string node_name_
 
bool is_removing_
 A flag for safely removing nodes from the Wolf tree. See remove(). More...
 

Detailed Description

Base class of tree managers: they manage the wolf tree (e.g. removing or fixing frames) at each new keyframe.

Constructor & Destructor Documentation

◆ TreeManagerBase()

wolf::TreeManagerBase::TreeManagerBase ( const std::string &  _type,
const YAML::Node &  _params 
)
inlineprotected

Constructor from the derived class name and the YAML parameters.

◆ ~TreeManagerBase()

virtual wolf::TreeManagerBase::~TreeManagerBase ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ hasChildren()

bool wolf::TreeManagerBase::hasChildren ( ) const
inlineoverridevirtual

Returns whether the node has children in the Wolf tree.

Implements wolf::NodeBase.

◆ keyFrameCallback()

virtual void wolf::TreeManagerBase::keyFrameCallback ( FrameBasePtr  _key_frame)
pure virtual

Manages the wolf tree when a new keyframe is created.

Implemented in wolf::TreeManagerSlidingWindow, and wolf::TreeManagerSlidingWindowDualRate.


The documentation for this class was generated from the following file: